/*
 * Copyright (c) 2015 Uwantsoft Ltd.
 * www.uwantsoft.com
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Uwantsoft ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement you
 * entered into with Uwantsoft.
 */

package com.uwantsoft.business.service.infrastructure;

import com.uwantsoft.business.facade.dto.user.UserOverviewQueryCondition;
import com.uwantsoft.business.service.domain.user.User;
import com.uwantsoft.util.EntityRepository;

import java.util.List;

/**
 * @author Chuanbao
 */
public interface UserRepository extends EntityRepository {
    public User findByUsername(String username);

    public User findUser(String guid);

    public List<User> findUsers(UserOverviewQueryCondition condition);

    public int findUserTotalAmount(UserOverviewQueryCondition condition);
}
